﻿@model KPIS.GERP.WEB.GIMS.Controllers.ModelTest
@using KPIS.GERP.WEB.GIMS.Class; 

@{
    ViewBag.Title = "Index";
    Layout = null;
}

@using (Html.BeginForm("Index", "_Test", FormMethod.Post, new { @class = "form-horizontal" }))
{
     @Html.AntiForgeryToken() 
    <text>
Model.Col1  = @Model.Col1
<br/>
Model.Col2  = @(Model.Col2 == true ? "true": (Model.Col2 == false ? "false" : "null"))
<br/>

        <label>Checkbox Col1 : @Html.CheckBoxFor(o=>o.Col1)</label>
<br/>
        <label >
            <input type="checkbox" id="Col2" name="Col2" @(Model.Col2 == true ? "checked" : "") data-val="@(Model.Col2 == true)" value="true"/>
            <span class="lbl">Checkbox Col2 : </span>
        </label>
        <br/>
<input type="submit" value="ส่ง"/>
    </text>
} 